package com.sun.evening.service.impl;

import com.sun.evening.core.common.Result;
import com.sun.evening.dao.dto.PictureInsertDto;
import com.sun.evening.manager.minio.MinioUtils;
import com.sun.evening.manager.service.RootService;
import com.sun.evening.service.AdminService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import java.util.*;

@Service
public class AdminServiceImpl implements AdminService {
    @Resource
    private MinioUtils minioUtils;
    @Resource
    private RootService rootService;

    @Override
    public Result insertImagesList(List<MultipartFile> imageList, String path) throws Exception {
        List<PictureInsertDto> pictureInsertDtoList=rootService.insertImages(imageList,path);
        return Result.success(pictureInsertDtoList);
    }

    @Override
    public Result insertUserList(List<String> openIdList) {
        return null;
    }

}
